package com.wenjiang.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author lwj
 * @since 2021-07-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class MallUser implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.ASSIGN_ID)
    private Long userId;

    @TableField()
    private String aliPayId;

    @NotBlank(message = "不能为空")
    private String userName;
    @NotBlank(message = "不能为空")
    private String password;
    @Email(message = "正确的邮箱格式")
    private String userEmail;


    private String userPhone;


    private String userSign="好好学习，天天向上";



    private String name;
    private String userImgUrl;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;


}
